﻿var data1 = [{ "xshth": "XS201508001", "htrq": "2012-12-12", "wcrq": "2012-12-12", "xsly": "储备库存油", "rwjd": "" },
            { "xshth": "XS201508002", "htrq": "2012-12-12", "wcrq": "2012-12-12", "xsly": "采购再涂原油", "rwjd": "" },
            { "xshth": "XS201508003", "htrq": "2012-12-12", "wcrq": "2012-12-12", "xsly": "企业代存原油", "rwjd": "" }];

$(function () {
    $("#tt").datagrid({
        fitColumns: true,
        data: data1,
        columns: [[
            {
                field: 'xshth', title: '销售合同号', width: 120, align: 'center',
                formatter: function (value, row, index) {
                  return '' +
                      '<span><a href="../生产企业销售业务/生产企业销售业务新增.html?quanxian=' + (index + 1) + '">' + row.xshth + '</a></span>';
                }
            },
            { field: 'htrq', title: '合同日期', width: 120, align: 'center'},
            { field: 'wcrq', title: '完成日期', width: 120, align: 'center'},
            { field: 'xsly', title: '销售来源', width: 120, align: 'center'},
            { field: 'rwjd', title: '任务节点', width: 120, align: 'center'}
        ]]
    });
});